package com.xyz.study.design_mode.l_decorator;

import com.xyz.study.design_mode.l_decorator.mode.ConcreteDraw;
import com.xyz.study.design_mode.l_decorator.mode.ConcretePlayDraw;
import com.xyz.study.design_mode.l_decorator.mode.PlayDraw;

/**
 * 一致性模式：其二 ---- Decorator 装饰者模式
 * 装饰者与被装饰者的一致性
 * @author XYZ
 * @version 1.0.0
 * @since 2020/6/22
 */
public class DecoratorMain {
    public static void main(String[] args) {
        PlayDraw playDraw = new ConcretePlayDraw(new ConcretePlayDraw(new ConcreteDraw()));
        playDraw.drawEgg();
        playDraw.show();
    }
}
